<template>
  <div>
    <van-picker show-toolbar :columns="columns" value-key="text" @change="onChange" />
  </div>
</template>


<script>
const citys = {
  发动机: [
    {
      text: "1"
    },
    {
      text: "2"
    }
  ],
  记起: [
    {
      text: "1"
    },
    {
      text: "2"
    }
  ]
};
export default {
  data() {
    return {
      columns: [{ values: Object.keys(citys) }, { values: citys["浙江"] }]
    };
  },
  mounted() {
    console.log(this.$route.params.list);
  },
  methods: {
    onChange(picker, values) {
      picker.setColumnValues(1, citys[values[0]]);
    }
  }
};
</script>